/**
 * @desc 个人中心
 */

import Taro from "@tarojs/taro"
import { View, Text, Button } from "@tarojs/components"

class PersonalCenter extends Taro.Component {
    onGetUserInfo(e) {
        console.log("user info", e)
        Taro.login().then(res => {
            console.log("login")
        })
    }

    render() {
        return (
            <View>
                <Text>个人中心</Text>
                <Button openType="getUserInfo" onGetUserInfo={this.onGetUserInfo}>
                    get user
                </Button>
            </View>
        )
    }
}

export default PersonalCenter
